package com.zdzx.model.service.content.vo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zdzx.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "课程", description = "课程")
@TableName("content_course")
public class Course  extends BaseEntity implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "视频标题", name = "title")
	private String title;
	@ApiModelProperty(value = "标题图片", name = "titleImage")
	private String titleImage;
	@ApiModelProperty(value = "课程路径", name = "videoPath")
	private String path;
	@ApiModelProperty(value = "资料图片", name = "dataPath")
	private String dataImage;
	@ApiModelProperty(value = "资料介绍", name = "dataPath")
	private String dataIntroduce;
	@ApiModelProperty(value = "资料路径", name = "dataPath")
	private String dataPath;
	@ApiModelProperty(value = "课程介绍", name = "introduce")
	private String introduce;
	@ApiModelProperty(value = "讲师", name = "lecturer")
	private String lecturer;
	@ApiModelProperty(value = "价格", name = "price")
	private String price;
	@ApiModelProperty(value = "1 免费 0收费", name = "free")
	private String free;
	@ApiModelProperty(value = "0视频 1课程", name = "type")
	private String type;
	@ApiModelProperty(value = "课程分类", name = "type")
	private String courseType;
	@ApiModelProperty(value = "课程门类", name = "type")
	private String category;
	@ApiModelProperty(value = "排序", name = "sort")
	private Integer sort;
	@ApiModelProperty(value = "浏览量", name = "views")
	private Integer views;
	@ApiModelProperty(value = "课程id", name = "parentId")
	private String parentId;
	@ApiModelProperty(value = "租户id", name = "tenantId")
	private String tenantId;
	private Integer dcount;
	private Integer scount;
	private Integer sumCount;
	private Integer isPackage;
	/*
	public void setTitleImage(String titleImage,boolean flag) {
		if(!StringUtils.isEmpty(titleImage)&&!titleImage.contains(SystemConfig.ossIp)&&flag)
		this.titleImage = SystemConfig.ossIp+titleImage;
		else
		this.titleImage=titleImage;
	}
	public void setTitleImage(String titleImage) {
		if(!StringUtils.isEmpty(titleImage)&&!titleImage.contains(SystemConfig.ossIp))
		this.titleImage = SystemConfig.ossIp+titleImage;
		else
		this.titleImage=titleImage;
	}
	public void setPath(String path,boolean flag) {
		if(!StringUtils.isEmpty(path)&&!path.contains(SystemConfig.ossIp)&&flag)
		this.path = SystemConfig.ossIp+path;
		else
		this.path=path;
	}
	public void setPath(String path) {
		if(!StringUtils.isEmpty(path)&&!path.contains(SystemConfig.ossIp))
		this.path = SystemConfig.ossIp+path;
		else
		this.path=path;
	}
	public void setDataImage(String dataImage,boolean flag) {
		if(!StringUtils.isEmpty(dataImage)&&!dataImage.contains(SystemConfig.ossIp)&&flag)
		this.dataImage = SystemConfig.ossIp+dataImage;
		else
		this.dataImage=dataImage;
	}
	public void setDataImage(String dataImage) {
		if(!StringUtils.isEmpty(dataImage)&&!dataImage.contains(SystemConfig.ossIp))
		this.dataImage = SystemConfig.ossIp+dataImage;
		else
		this.dataImage=dataImage;
	}
	public void setDataPath(String dataPath,boolean flag) {
		if(!StringUtils.isEmpty(dataPath)&&!dataPath.contains(SystemConfig.ossIp)&&flag)
			this.dataPath = SystemConfig.ossIp+dataPath;
			else
			this.dataPath=dataPath;
	}
	
	public void setDataPath(String dataPath) {
		if(!StringUtils.isEmpty(dataPath)&&!dataPath.contains(SystemConfig.ossIp))
			this.dataPath = SystemConfig.ossIp+dataPath;
			else
			this.dataPath=dataPath;
	}
	public static void main(String[] args) {
		Map<String, Object> checkJWT = JwtUtil.checkJWT("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBRE1JTiIsImp0aSI6IjAiLCJpYXQiOjE1OTkzMTcxMzIsImV4cCI6MTU5OTMyNDMzMn0._XOj70Q9mAi1euPtCXWrDOzPQl2Xyeswi356QCb3InI");
		System.out.println(checkJWT);
	}*/
}
